package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsDetailsEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsDetailsCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsDetailsUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsDetailsSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsDetailsOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsDetailsResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsDetailsRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsDetailsConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsDetailsService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsDetailsApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 商品详情 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/details")
public class TradeGoodsDetailsController implements TradeGoodsDetailsApi, BaseCrudController<
        TradeGoodsDetailsEntity,
        TradeGoodsDetailsCreateParam,
        TradeGoodsDetailsUpdateParam,
        TradeGoodsDetailsSearchParam,
        TradeGoodsDetailsOrderParam,
        TradeGoodsDetailsResult,
        TradeGoodsDetailsRepository,
        TradeGoodsDetailsConverter,
        TradeGoodsDetailsService
        > {

    @Autowired
    TradeGoodsDetailsService tradeGoodsDetailsService;

    @Override
    public TradeGoodsDetailsService getService() {
        return tradeGoodsDetailsService;
    }
}